package com.woniuxy.controller;

import com.woniuxy.entity.Classs;
import com.woniuxy.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("classs")
public class ClassController {
@Autowired
ClassService classService;
@GetMapping ("findAll")
public List<Classs> findAll(){
    return classService.findAll();
}
}
